<?php
/**
 * 修改密码
 */
namespace APP\PUT;

class Pwd extends \SF\Input
{
	public function init()
	{
	    // 原密码
		$this->addItem('oldpass', array(
		    'filters'         => array('stringTrim', 'deQuote'),
		    'validators'	 => array(
		        array('validator'=>'NotEmpty', 'message'=>'原密码不能为空'),
		    ),
		));
		
		// 新密码
		$this->addItem('newpass', array(
		    'filters'		=> array('stringTrim', 'deQuote'),
		    'validators'	=> array(
		        array('validator'=>'NotEmpty', 'message'=>'新密码不能为空'),
		    ),
		));
	}
}